import request from '@/util/request'
import { screenData } from '@/api/screen/tyde.ts'

enum API {
  TOTAL_USER = '/admin/scream/total',
  TOTAL_MONEY = '/admin/scream/amount',
  SEX_MAN_DATA = '/admin/scream/mantotal',
  SEX_WOMAN_DATA = '/admin/scream/nvtotal',
  AGE_DATA = '/admin/scream/ageform',
  UserAndTodayMoney = '/admin/scream/today',
  PROVINCE = '/admin/scream/province',
  RANK_DATA = '/admin/scream/hot',
  DAY_DATA = '/admin/scream/before',
  TYPE_DATA = '/admin/scream/type',
}

export const reqTotalUser = () => request.get<any, screenData>(API.TOTAL_USER)
export const reqTotalMoney = () => request.get<any, screenData>(API.TOTAL_MONEY)
export const ReqSexManData = () =>
  request.get<any, screenData>(API.SEX_MAN_DATA)
export const ReqSexWomanData = () =>
  request.get<any, screenData>(API.SEX_WOMAN_DATA)

export const ReqAgeData = () => {
  return request.get<any, screenData>(API.AGE_DATA)
}
export const ReqUserAndTodayMoney = () => {
  return request.get<any, any>(API.UserAndTodayMoney)
}

export const reqProvince = () => {
  return request.get<any, any>(API.PROVINCE)
}

export const ReqRankData = () => {
  return request.get<any, any>(API.RANK_DATA)
}

export const ReqDayData = () => {
  return request.get<any, any>(API.DAY_DATA)
}

export const ReqTypeData = () => {
  return request.get<any, any>(API.TYPE_DATA)
}
